<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'vipheader',true)" />-->
<!--{d*else}-->
<!--<include file="Core_Extend::template('header')" />-->
<!--{/if}-->

<!--{~$sCalendarLang=Core_Extend::calendar()}-->
<!--{:Core_Extend::validate()}-->

<!--{script}-->
function addGuestbook(){
	$("#submit_button").attr("disabled","disabled");
	$("#submit_button").val('提交留言...');
	Q.AjaxSubmit('guestbookAdd',Q.U('jiaju://shop/addguestbook'),'',function(data,status){ 
		$("#submit_button").attr("disabled",false);
		$("#submit_button").val("提交留言");
		if(status==1){
			setTimeout(function(){
				window.location.replace(_SELF_);
			},1000);
		}
	});
}

checkForm(addGuestbook);
<!--{/script}-->

	<!--{if !$arrJiajucompany['jiajucompany_isfvip']}-->
	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://public/index')}-->" title="<!--<lang package='Template'>-->家居装饰<!--</lang>-->"><!--<lang package='Template'>-->家居装饰<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://company/index')}-->"><!--{$GLOBALS['_citysite_']['site_name']}--><!--<lang package='Template'>-->装修公司排名<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Jiaju_Extend::getShopUrl($arrJiajucompany)}-->"><!--{$arrJiajucompany['jiajucompany_fullname']}--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li>添加留言</li>
		</ul>
	</div>
	<!--{/if}-->

	<div class="container_12 container_box">
		<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
		<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'menu',true)" />-->
		<!--{/if}-->
		
		<div class="grid_12">
			<div class="common_contentbox common_contentboxwhite clearfix">
				<div class="common_contentbody">
					<span class="right"><a href="<!--{:Jiaju_Extend::getGuestbookUrl($arrJiajucompany)}-->" title="用户留言列表">返回用户留言列表</a></span>
					<h1 class="title">发布留言</h1>
					<form class="form-horizontal validate" method='post' id="guestbookAdd" name="guestbookAdd">
						<fieldset>
							<div class="control-group">
								<label class="control-label" for="jiajucompanyguestbook_name">姓名<em style="color:red">*</em></label>
								<div class="controls">
									<input class="input-xlarge {required:true,maxlength:50}" id="jiajucompanyguestbook_name" name="jiajucompanyguestbook_name" type="text" value="">
									<p class="input_tips">请填写真实姓名。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanyguestbook_mobile">手机号<em style="color:red">*</em></label>
								<div class="controls">
									<input class="input-xlarge {required:true,isMobile:true}" id="jiajucompanyguestbook_mobile" name="jiajucompanyguestbook_mobile" type="text" value="">
									<p class="input_tips">请填写手机号码，以便于商家联系你。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanyguestbook_qq">QQ号码<em style="color:red">*</em></label>
								<div class="controls">
									<input class="{required:true,isQQ:true}" id="jiajucompanyguestbook_qq" name="jiajucompanyguestbook_qq" type="text" value="">
									<p class="input_tips">请填写QQ号码，以便于商家联系你。</p>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanyguestbook_content">留言内容<em style="color:red">*</em></label>
								<div class="controls">
									<textarea class="{required:true,maxlength:250}" id="jiajucompanyguestbook_content" name="jiajucompanyguestbook_content" type="text" value="" style="width:500px;height:80px;"></textarea>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="form-actions">
								<input type="hidden" name="ajax" value="1">
								<input type="submit" id="submit_button" class="btn" value="提交留言" />
							</div>
						</fieldset>
					</form>

					<div class="tips tips-highlight">留言发布后，等待系统审核通过后就会显示在留言列表中。</div>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	
	</div>

<!--<include file="Core_Extend::template('footer')" />-->